﻿using System;
using System.Linq;
using System.Windows.Data;
using System.Windows.Controls;
using System.Data;

namespace ForumsBrowser
{
    public class NotBooleanToVisibilityConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return new BooleanToVisibilityConverter().Convert(!(bool)value, targetType, parameter, culture);
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return !(bool)new BooleanToVisibilityConverter().ConvertBack(value, targetType, parameter, culture);
        }
    }
}
